home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / minix / gccbin~1.z / gccbin~1 / README < prev   
Encoding:
Text File  |  1989-11-29  |  1.8 KB  |  55 lines

  1. Please read the file COPYING first.
  2.  
  3. These binaries for minix gcc
  4.     gcc-* go into /usr/local/lib
  5.     gcc   goes into /usr/local/bin or anywhere in your PATH.
  6. 1M St users may want to use an older version of the driver program `gcc'
  7. to conserve space unless you are planning on using newer features
  8. of the compiler.
  9.     all others (grep, egrep etc) can go anywhere in your PATH.
  10.  
  11. NOTE about gcc-ld options:
  12.     -s : now means strip output of symbols. If not specified, a
  13.          minix-out.h format symbol table will be put in a.out.
  14.  
  15.     -z : now means generate a mdb compatible `.sym' file in addition
  16.          to a.out.
  17.  
  18. To use mdb with gcc:
  19.  
  20.     gcc -o foo foo.c  ... -z [-s] [-mshort]    ([xxx] optionaly use xxx)
  21.         will produce foo and foo.sym
  22.     mdb foo foo.sym
  23.     * R or * r <args>
  24.       .. mdb commands
  25.  
  26. Note about -mshort gcc:
  27.     gcc -mshort is now a true 16 bit integer compiler. If you use
  28. ansi function prototypes (see $INCLUDE/std.h) you will keep yourself
  29. out of trouble.
  30.     Constructs to watch out for
  31.     - sizeof(X) returns a LONG
  32.         the usage: malloc(sizeof(foo)) without a cast is wrong
  33.                malloc((unsigned int)sizeof(foo)) is correct
  34.         the prototype
  35.             void *malloc(unsigned int);
  36.         will take care of the above problem
  37.         but if you have
  38.             extern char *malloc()
  39.         after the prototype, the compiler will not automatically cast
  40.         the arguement of malloc to an unsigned int. So watch out!
  41.  
  42.     - NULL is a (void *) (32 bit entity)
  43.       A function foo expecting an 16 bit int arguements if invoked by
  44.         foo(NULL, another_int);
  45.       will get junk for another_int. The correct usage is
  46.         foo((int)NULL, another_int);
  47.       again prototypes for foo(int, int) if specified will do the
  48.       right thing for you.
  49.  
  50. please send your comments/suggestions to:
  51.  
  52. bang:   {any internet host}!dsrgsun.ces.CWRU.edu!bammi    jwahar r. bammi
  53. domain: bammi@dsrgsun.ces.CWRU.edu
  54. GEnie:    J.Bammi
  55.